<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>outWHGoods</title>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
</head>
<body>
<div style="margin-top: 20px">
    <table class="table table-striped table-bordered table-hover table-condensed" id='tabletest' style="width: 800px" align="center">
        <tr style="text-align: center">
            <th>商品名</th>
            <th>入库时间</th>
            <th>描述</th>
            <th>出库时间</th>
            <th><button style="width: 100px" id="out" onclick="backwareHouse()" type="button" class="btn btn-success">返回</button></th>
        </tr>
    </table>
</div>

</body>
<script>
    $(document).ready(function (t) {
        $.ajax({
            type: 'GET',
            url: "http://49.235.107.34:8081/wh/findExistAll",
            data:{"state" : "0"},
            success: function (result) {
                for (var i in result.data) {
                    $("table").append(`
                            <tr style="text-align: center">
                                <td>${result.data[i].goodsName}</td>
                                <td>${result.data[i].createTime}</td>
                                <td>${result.data[i].descripe}</td>
                                <td>${result.data[i].updateTime}</td>
                            </tr>
                        `);
                }
            }
        });
    });
    function backwareHouse() {
        window.location.assign("http://49.235.107.34:8081/wareHouseAll.html")
    }
</script>
</html>